<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
      
<h:head>
	<title>Processos Login</title>
</h:head>
<ui:composition template="/paginas/templates/commonLayout.xhtml">

	<ui:define name="header">
	</ui:define>

	<ui:define name="content">

		<p:panel columns="1" style="width : 800px">
			<h:outputLabel value="Faça o seu Login" />
		</p:panel>
		<br />

		<h:form id="formLogin">
			<p:growl id="growLogin" showDetail="false" sticky="false" life="5000" />
			<p:panel columns="4" style="width : 800px">
				<h:panelGrid columns="2" cellpadding="5">

					<h:outputLabel for="usuarioLogin" value="Login:" />
					<p:inputText id="usuarioLogin" value="#{usuarioBean.login}"
						required="true"
						requiredMessage="favor informar o login do usuário."
						maxlength="50" />


					<h:outputText value="Senha: " />
					<p:password value="#{usuarioBean.senha}" feedback="false"
						required="true"
						requiredMessage="favor informar a senha do usuário."
						maxlength="50" />

				</h:panelGrid>

				<p:commandButton value="Login" ajax="false" update="table"
					action="#{usuarioBean.efetuarLogin}" />


			</p:panel>
		</h:form>


	</ui:define>


</ui:composition>

	
</html>